package com.syxx.oa.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.syxx.oa.dao.EmpLevelDao;
import com.syxx.oa.domain.EmpLevel;
import com.syxx.oa.service.EmpLevelService;
import com.test.jbpm.Pager;

@Service
public class EmpLevelServiceImpl implements EmpLevelService {

	private EmpLevelDao empLevelDao;
	
	@Autowired
	public void setEmpLevelDao(EmpLevelDao empLevelDao) {
		this.empLevelDao = empLevelDao;
	}

	public void addOrUpdate(EmpLevel bean) {
		// TODO Auto-generated method stub
		empLevelDao.addOrUpdate(bean);
	}

	public void del(Long id) {
		// TODO Auto-generated method stub
		empLevelDao.delById(id);
	}

	public void del(Long[] ids) {
		// TODO Auto-generated method stub
		for (Long id : ids) {
			empLevelDao.delById(id);
		}
	}

	public EmpLevel findById(Long id) {
		// TODO Auto-generated method stub
		return empLevelDao.findById(id);
	}

	public Pager<EmpLevel> findList() {
		// TODO Auto-generated method stub
		return empLevelDao.findList();
	}

	public List<EmpLevel> findListBy(Map<String,Object> key){
		return empLevelDao.findListBy(key);
	}
}
